package com.cskaoyan;

import com.cskaoyan.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author stone
 * @date 2022/04/26 10:03
 */
public class MyTest2 {


    @Test
    public void mytest2() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("application.xml");
        UserService userServiceProxy = applicationContext.getBean("userServiceProxy", UserService.class);

    }
}
